package org.example;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

@Component
public class CalImpl implements Cal {
    @Override
    public int add(int num1,int num2){
        int result=num1+num2;
        return result;
    }
    @Override
    public int sub(int num1,int num2){
        int result=num1-num2;
        return result;
    }
    @Override
    public int mul(int num1,int num2){
        int result=num1*num2;
        return result;
    }
    @Override
    public int div(int num1,int num2){
        int result=num1/num2;
        return result;
    }

}
